<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Discuz_model extends CI_Model {
	function __construct(){
        parent::__construct();
    }
    
    function zuixin($data=array()){
    	$mkey = "get_post_list_index";
    	//$this->mycache->delete($mkey);
		$ret = $this->mycache->get_array($mkey);
		if($ret != false){
			return $ret;
		}
		$DB2 = $this->load->database('discuz', TRUE); 
		$sql = " SELECT tid,`subject`,displayorder,dateline FROM pre_forum_thread WHERE displayorder>-1 ORDER BY displayorder desc,tid DESC LIMIT 0,6 ";
    	$query = $DB2->query($sql);
    	$list = $query->result_array();
    	$this->mycache->set_array($mkey, $list, 15 * 60);
    	return $list;
    }
}